using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DONTHUOCCT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DONTHUOCCTFields
		{
			Id,
			DonThuocId,
			Mavt,
			Tenvt,
			Soluong,
			Dvt,
            LieuDung
		}
		#endregion

		#region Data Members

			int? _id;
			int _donThuocId;
			string _mavt;
			string _tenvt;
			int? _soluong;
			string _dvt;
            string _lieuDung;

		#endregion

		#region Properties

		public int?  Id
		{
			 get { return _id; }
			 set
			 {
				 if (_id != value)
				 {
					_id = value;
				 }
			 }
		}

		public int  DonThuocId
		{
			 get { return _donThuocId; }
			 set
			 {
				 if (_donThuocId != value)
				 {
					_donThuocId = value;
				 }
			 }
		}

		public string  Mavt
		{
			 get { return _mavt; }
			 set
			 {
				 if (_mavt != value)
				 {
					_mavt = value;
				 }
			 }
		}

		public string  Tenvt
		{
			 get { return _tenvt; }
			 set
			 {
				 if (_tenvt != value)
				 {
					_tenvt = value;
				 }
			 }
		}

		public int?  Soluong
		{
			 get { return _soluong; }
			 set
			 {
				 if (_soluong != value)
				 {
					_soluong = value;
				 }
			 }
		}

		public string  Dvt
		{
			 get { return _dvt; }
			 set
			 {
				 if (_dvt != value)
				 {
					_dvt = value;
				 }
			 }
		}
        public string LieuDung
        {
            get { return _lieuDung; }
            set
            {
                if (_lieuDung != value)
                {
                    _lieuDung = value;
                }
            }
        }

		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DonThuocId", "DonThuocId"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Mavt", "Mavt",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Tenvt", "Tenvt",200));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Dvt", "Dvt", 50));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LieuDung", "LieuDung", 200));
		}

		#endregion

	}
}
